package com.zhiyou100.interface_demo3;

/**
 * 教师
 */
public class Teacher implements Work{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Teacher() {
    }

    public Teacher(String name) {
        this.name = name;
    }

    @Override
    public void startWork() {
        System.out.println(name + "老师开始上课");
    }

    @Override
    public void endWork() {
        System.out.println(name + "老师下课");
    }

    @Override
    public void abideByLaw() {
        System.out.println(name + "老师，好好上课，不要私自课下收费补课");
    }

    @Override
    public void sport() {
        System.out.println(name + "跑步锻炼，更好的教学");
    }
}
